package wechat.rcv;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import wechat.rcv.controller.Log4jService;

//@RestController
@Controller
// @RequestMapping()
//@RequestMapping("/webpage")
public class TestController {
	@Autowired Log4jService  log4jService;
	
	@RequestMapping(method = RequestMethod.GET, value = "/test")
	public String testConn(Model model) {
		log4jService.info(TestController.class, "======request==(/test)=>");
		model.addAttribute("topic", "Daily Meeting");
		model.addAttribute("time", "15:45");
		model.addAttribute("noti_date", "04-14");
		model.addAttribute("noti_weekday", "周五");
		model.addAttribute("place", "Meeting Room A");
		model.addAttribute("fromwhom", "Lynn");
//		return "test";
		return "notificationdetails";
	}
}